import { exInputNumber, exInput, exSwitch } from '@ve/common/components/extension'

export default {
  VERSION: '20220408',
  type: 'uiRotateCard',
  name: '流光盒子',
  icon: 'checkbox-blank-line',
  svg: 'liuguang',
  //数据别名
  // dataName: 'uiFlexbox_data',
  //扩展
  extension: {
    isDesign: exSwitch('是否自定义内容', true),
    requestSet: {
      type: 'exRequestSet',
      name: '接口配置',
      value: {
        api: '/wms/wms-web',
        method: 'wms.screen.query.test',
        getDataKey: 'wms.screen.query.test',
        cardValue: 'EDITWHO',
        isCard: true,
        loopRequest: false,
        loopTime: 3000,
        nameKey: '',
        valueKey: '',
        busList: [],
        dataObj: {},
        data: [
          { key: '#LIMIT#', value: '1' },
          { key: '#PAGE_SIZE#', value: '10' },
        ],
        resList: [],
      },
    },
    boxHeight: exInputNumber('高度', 100, 1, 1000),
    topMargin: {
      type: 'exInputNumber',
      name: '上外边距',
      value: 0,
    },
    rightMargin: {
      type: 'exInputNumber',
      name: '右外边距',
      value: 0,
    },
    bottomMargin: {
      type: 'exInputNumber',
      name: '下外边距',
      value: 0,
    },
    leftMargin: {
      type: 'exInputNumber',
      name: '左外边距',
      value: 0,
    },
    title: exInput('内容', '测试内容'),
    subTitle: exInput('二级标题内容', '总数'),
    color: {
      type: 'exSetChartColor',
      name: '内容颜色',
      value: '#888',
    },
    fontSize: exInputNumber('标题字体大小', 12, 1, 100),
    subFontSize: exInputNumber('二级标题字体大小', 12, 1, 100),
    leftColor: {
      type: 'exSetChartColor',
      name: '左弧颜色',
      value: '#25B0F3',
    },
    rightColor: {
      type: 'exSetChartColor',
      name: '右弧颜色',
      value: '#F4F02A',
    },
    topColor: {
      type: 'exSetChartColor',
      name: '上弧颜色',
      value: '#EF4921',
    },
    bottomColor: {
      type: 'exSetChartColor',
      name: '下弧颜色',
      value: '#13DA71',
    },
    width: exInputNumber('齿轮宽', 100, 1, 10000),
    height: exInputNumber('齿轮高', 100, 1, 10000),
    weight: exInputNumber('齿轮粗细', 7, 1, 100),
  },
  //交互
  interaction: [],
  data: {},
}
